

import { combineReducers } from '../../redux'

import counter1 from './counter1'
import counter2 from './counter2'

let reducers = {
    counter1,
    counter2
} 

// combineReducers把多个reducer函数组件合并成一个reducer
let combineReducer = combineReducers(reducers)
export default combineReducer

// 合并后的状态和reducers差不多
// let combineReducer = {
//     counter1:{number:0},
//     counter2:{number:0}
// }
